import request from '@/utils/request';

//查询
export function roleList(data) {
  return request({
    url: '/admin/auth/role/roleList',
    method: 'get',
    params: data,
  });
}

//新增
export function roleSave(data) {
  return request({
    url: '/admin/auth/role/roleSave',
    method: 'post',
    data,
  });
}

//修改
export function roleUpdate(data) {
  return request({
    url: '/admin/auth/role/roleUpdate',
    method: 'post',
    data,
  });
}

//删除
export function roleRemove(data) {
  return request({
    url: '/admin/auth/role/roleRemove',
    method: 'DELETE',
    params: data,
  });
}
